package kr.co.pension.exceptions;

/**
 * 에러시 다른페이지로 포워딩 시킬때 여부
 * @author devhw
 *
 */
public class RequiredLoginException extends RuntimeException {

	private static final long serialVersionUID = 417962495190982398L;

	
	/**
	 * 생성자
	 * @param p_id
	 * @param url
	 * @param callbackUrl
	 */
	public RequiredLoginException(String p_id, String url, String callbackUrl) {
//		this.url = url;
//		this.p_id = p_id;
		setUrl(url);
		setP_id(p_id);
		setCallbackUrl(callbackUrl);
	}
	
	
	//로그인 페이지 url
	private String url;
	
	//펜션 고유번호
	private String p_id;
	
	//반환될 url
	private String callbackUrl;

	public String getP_id() {
		return p_id;
	}

	public void setP_id(String p_id) {
		this.p_id = p_id;
	}

	public RequiredLoginException() {
		super();
	}

	
	
//	public RequiredLoginException(String p_id) {
//		this.p_id = p_id;
//	}
	
	public String getCallbackUrl() {
		return callbackUrl;
	}

	public void setCallbackUrl(String callbackUrl) {
		this.callbackUrl = callbackUrl;
	}



	public String getUrl() {
		return url;
	}

	public void setUrl(String url) {
		this.url = url;
	}

}
